package com.zzty.wja.serviceImpl;

import com.zzty.wja.mapper.UserMapper;
import com.zzty.wja.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zzty.wja.entity.User;



@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByName(User user) {
        return userMapper.getUserByName(user);
    }

    @Override
    public Integer addUser(User user) {
        Integer count=userMapper.addUser(user);
        return count;
    }

    @Override
    public Integer updateUserById(User user) {
        Integer count=userMapper.updateUserById(user);
        return count;
    }
}
